from .app import app
from sanic.request import Request
from sanic.response import json
from database import User


@app.get('/')
async def index(request: Request):
    user = await User.first()
    print(user.to_dict())
    return json(user.to_dict())
